About enablers

Because every menu item in Dreamweaver 3 is implemented as a JavaScript function, a JavaScript mechanism is required to determine when menu items should be enabled. This mechanism is a series of functions called enablers.

An enabler determines whether its associated main function can operate in the current context. For example, site.canGet() determines whether Dreamweaver can perform a Get operation (site.get()).

Each function specification in this API lists the enabler for the function, if applicable. (Some functions do not have enablers, either because the menu item associated with the function is always enabled, or because the function is unrelated to menus.) Function specifications for the enablers appear at the end of this chapter.